package com.mine.loadbalance;

import com.mine.common.URL;

import java.util.List;
import java.util.Random;

/**
 * @author weixiao
 * @date 2025/3/31 15:11
 */
public class LoadBalancer {

    public static URL random(List<URL> urls) {
        Random r = new Random();
        int index = r.nextInt(urls.size());
        return urls.get(index);
    }
}
